<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>快速开始</title>
    <meta name="generator" content="VuePress 1.9.7">
    
    <meta name="description" content="">
    
    <link rel="preload" href="/cccc/assets/css/0.styles.1a14e5ce.css" as="style"><link rel="preload" href="/cccc/assets/js/app.f157bd8f.js" as="script"><link rel="preload" href="/cccc/assets/js/2.65ca21bd.js" as="script"><link rel="preload" href="/cccc/assets/js/12.f72e9887.js" as="script"><link rel="prefetch" href="/cccc/assets/js/10.3ca84d19.js"><link rel="prefetch" href="/cccc/assets/js/11.ba40347f.js"><link rel="prefetch" href="/cccc/assets/js/3.3fbed017.js"><link rel="prefetch" href="/cccc/assets/js/4.bd722fb2.js"><link rel="prefetch" href="/cccc/assets/js/5.ce9f307f.js"><link rel="prefetch" href="/cccc/assets/js/6.f850e771.js"><link rel="prefetch" href="/cccc/assets/js/7.d6c9aa82.js"><link rel="prefetch" href="/cccc/assets/js/8.c0d98eb6.js"><link rel="prefetch" href="/cccc/assets/js/9.f6668a1d.js">
    <link rel="stylesheet" href="/cccc/assets/css/0.styles.1a14e5ce.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cccc/" aria-current="page" class="home-link router-link-exact-active router-link-active"></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cccc/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
  Home
</a></div><div class="nav-item"><a href="https://www.npmjs.com/package/cjx-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  npm
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cccc/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
  Home
</a></div><div class="nav-item"><a href="https://www.npmjs.com/package/cjx-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  npm
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/cccc/" aria-current="page" class="active sidebar-link">快速开始</a></li><li><a href="/cccc/componentDocs/card.html" class="sidebar-link">Card</a></li><li><a href="/cccc/componentDocs/cswiper.html" class="sidebar-link">cSwiper</a></li><li><a href="/cccc/componentDocs/NbGantt.html" class="sidebar-link">NbGantt</a></li><li><a href="/cccc/componentDocs/dialog.html" class="sidebar-link">cjx-dialog</a></li><li><a href="/cccc/componentDocs/button.html" class="sidebar-link">Cbutton</a></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="快速开始"><a href="#快速开始" class="header-anchor">#</a> 快速开始</h1> <h4 id="安装组件库"><a href="#安装组件库" class="header-anchor">#</a> 安装组件库</h4> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">npm</span> i cjx-ui
</code></pre></div><h4 id="引用组件库"><a href="#引用组件库" class="header-anchor">#</a> 引用组件库</h4> <blockquote><p>在 main.js中引用组件库</p></blockquote> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token comment">// 全部引入</span>
<span class="token keyword">import</span> <span class="token string">'cjx-ui/dist/css/index.css'</span>
<span class="token keyword">import</span> <span class="token constant">CUI</span> <span class="token keyword">from</span> <span class="token string">'cjx-ui'</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span><span class="token constant">CUI</span><span class="token punctuation">)</span>

<span class="token comment">// 按需引入</span>
<span class="token keyword">import</span> <span class="token string">'cjx-ui/dist/css/card.css'</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span>Card<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'cjx-ui'</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>Card<span class="token punctuation">)</span>
</code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/cccc/componentDocs/card.html">
        Card
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/cccc/assets/js/app.f157bd8f.js" defer></script><script src="/cccc/assets/js/2.65ca21bd.js" defer></script><script src="/cccc/assets/js/12.f72e9887.js" defer></script>
  </body>
</html>
